﻿using System;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.Web.SessionState;

namespace SBPweb.Components
{

    [ServiceContract(Namespace = "http://components.sbpweb.hu", SessionMode = SessionMode.Required)]
    public interface IComponentStoreService : ISessionStateItemCollection
    {

        [OperationContract]
        void Clear();

        [OperationContract]
        object Get(string key);

        [OperationContract]
        object GetAt(int index);

        [OperationContract]
        void Put(string key, object value);

        [OperationContract]
        void PutAt(int index, object value);

        [OperationContract]
        void Remove(string key);

        [OperationContract]
        void RemoveAt(int index);

    }

}